<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<!doctype html>
<html lang="zh">
<head>
    <title>编辑字典</title>
    <%@include file="/common/header.jspf"%>


    <style>
        .formInput{
            width: 300px;
        }
    </style>
</head>

<body>
<div style="padding:10px 60px 20px 60px" >
    <form id="dictionaryForm" method="post">
        <input type="hidden" name="id" value="${dictionary.id}"  />
        <input id="dictionaryTypeId" type="hidden" value="${dictionary.typeId}"  />
        <table cellpadding="5">
            <tr >
                <td style="width: 100px;">字典类型:</td>
                <td>
                    <input id="ddd" name="typeId" value="${dictionary.typeId}" hidden/>
                    <input id="ccc" class="easyui-combobox formInput"/>
                </td>
            </tr>
            <tr>
                <td>字典标识:</td>
                <td><input class="easyui-textbox formInput"  name="code" data-options="required:true" title=""  value="${dictionary.code}" readonly/></td>
            </tr>
            <tr>
                <td>字典名称:</td>
                <td><input class="easyui-textbox formInput"  name="name" data-options="required:true" title=""  value="${dictionary.name}"/></td>
            </tr>
            <tr>
                <td>是否可编辑:</td>
                <td>
                    <select class="easyui-combobox" name="readonly" style="width:100%" data-options="required:true,editable:false,selectOnNavigation:true">
                        <option value="1" <c:if test="${dictionary.readonly==1}">selected="selected"</c:if>>是</option>
                        <option value="0" <c:if test="${dictionary.readonly==0}">selected="selected"</c:if>>否</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>排序号:</td>
                <td><input class="easyui-numberspinner formInput"  name="sort" value="${dictionary.sort}" title=""/></td>
            </tr>
            <tr>
                <td>扩展字段1:</td>
                <td><input class="easyui-textbox formInput"  name="data1"  value="${dictionary.data1}" title=""/></td>
            </tr>
            <tr>
                <td>扩展字段2:</td>
                <td><input class="easyui-textbox formInput"  name="data2"  value="${dictionary.data2}" title=""/></td>
            </tr>
            <tr>
                <td>扩展字段3:</td>
                <td><input class="easyui-textbox formInput"  name="data3"  value="${dictionary.data3}" title=""/></td>
            </tr>
            <tr>
                <td>备注:</td>
                <td><input class="easyui-textbox formInput" name="remarks" data-options="multiline:true" style="height:60px" title=""   value="${dictionary.remarks}"/></td>
            </tr>

        </table>
    </form>
    <div style="text-align:center;padding:5px">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-save fa-lg" id="dictionarySave" >保存</a>
        <%--<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-clear" id="dictionaryReset">清空</a>--%>
    </div>
</div>
<script type="text/javascript" src="${ctx}/resources/js/permission/dictionary/edit.js"></script>
</body>
</html>
